﻿@model Entidades.Sistema.Venta.DetallePedido

@{
    ViewBag.Title = "Create";
    
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
         <legend>Nuevo Producto</legend>


        <div class="clearfix">
            @Html.LabelFor(model => model.Cantidad)
            <div class="input">
                @Html.EditorFor(model => model.Cantidad)
                @Html.ValidationMessageFor(model => model.Cantidad)
            </div>
        </div>
        
        <div class="clearfix">
                @Html.LabelFor(model => model.Producto.IdProducto, "Producto")
                <div class="input">
                    @Html.DropDownList("Producto", String.Empty)
                    @Html.ValidationMessageFor(model => model.Producto.IdProducto)
                </div>
            </div>

        <div class="actions">
            <input type="submit" class="btn primary" value="Create" />
        </div>
    </fieldset>
}



